package service

import "gadmin/model"

func GetMenus() (menus []model.Menu, err error) {
	result := model.DB.Find(&menus)
	if result.Error != nil {
		return nil, result.Error
	}
	return menus, nil
}
